<!-- *** CUT top -->

<table width="800"  border="0" cellspacing="0" cellpadding="0" class="form" id="vpt_ci_top_table">
    <tr>
        <td align="left">
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <div class="form_title">Template content item</div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <!-- If you don't want notes erase this START -->
    <tr>
        <td>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_note">
                <!-- Repeat this fo additional notes START -->
                <tr>
                    <td valign="top" align="left">
                        <table width="100%"  border="0" cellspacing="0" cellpadding="4" class="form_note_title">
                            <tr>
                                <td><img src="img/modules/form_html_tpl_static_ajax_metallic/exclamation_mark.png" border="0" alt="icon exclamation mark"  width="16" height="16" /></td>
                                <td width="100%" align="left">Note:</td>
                            </tr>
                        </table>
                    </td>
                    <td align="left" width="99%">
                        <div class="form_note_text">Fields marked with &quot;*&quot; are mandatory.</div>
                    </td>
                </tr>
                <!-- Repeat this fo additional notes END-->
            </table>
        </td>
    </tr>
    <!-- If you don't want notes erase this END -->
    <tr>
        <td>
            <div id="vpt_ci">
                <form onsubmit="submit_ajax_vpt_ci(); return false;" action="admin/modules/tangra_cms/vpage/vpt_ci_edit.php" method="post" name="vpt_ci_form" enctype="application/x-www-form-urlencoded">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td align="left">
                                <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_row">
                                    <tr>
                                        <td class="form_even_row">
                                            <!-- form_field_text vpt_ci_ci_name START-->
                                            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                <tr>
                                                    <td width="180">
                                                        <div align="right">Item name*:</div>
                                                    </td>
                                                    <td width="1%">
                                                        <input class="form" name="vpt_ci_ci_name" type="text" value="{$vpt_ci_ci_name_val}" maxlength="255" size="40" id="vpt_ci_ci_name"/>
                                                    </td>
                                                    <td>Free form name like: Above header text</td>
                                                </tr>
                                                {if $vpt_ci_ci_name_has_error}
                                                <!-- Potential errors START -->
                                                {if $vpt_ci_ci_name_error_mandatory_missing}
                                                <!-- mandatory_missing START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Field is mandatory.</div>
                                                    </td>
                                                </tr>
                                                <!-- mandatory_missing END -->
                                                {/if}
                                                {if $vpt_ci_ci_name_error_max_length_exceeded}
                                                <!-- max_length_exceeded START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div>
                                                    </td>
                                                </tr>
                                                <!-- max_length_exceeded END -->
                                                {/if}
                                                <!-- Potential errors END -->
                                                {/if}
                                            </table>
                                            <!-- form_field_text vpt_ci_ci_name END-->
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="form_odd_row">
                                            <!-- form_field_select vpt_ci_ci_type START-->
                                            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                <tr>
                                                    <td width="180">
                                                        <div align="right">Type*:</div>
                                                    </td>
                                                    <td width="1%">
                                                        <select class="form" name="vpt_ci_ci_type"  size="1" id="vpt_ci_ci_type">
                                                            
                                                                {foreach from=$vpt_ci_ci_type_options item=option} 
                                                                
                                                            <option value="{$option.html_value}"{if $option.selected} selected="selected"{/if}>{$option.label}</option>
                                                            
                                                                {/foreach}                                                             
                                                            
                                                            
                                                        </select>
                                                    </td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                {if $vpt_ci_ci_type_has_error}
                                                <!-- Potential errors START -->
                                                {if $vpt_ci_ci_type_error_mandatory_missing}
                                                <!-- mandatory_missing START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Field is mandatory.</div>
                                                    </td>
                                                </tr>
                                                <!-- mandatory_missing END -->
                                                {/if}
                                                {if $vpt_ci_ci_type_error_invalid_value}
                                                <!-- invalid_value START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Invalid value.</div>
                                                    </td>
                                                </tr>
                                                <!-- invalid_value END -->
                                                {/if}

                                                <!-- Potential errors END -->
                                                {/if}
                                            </table>
                                            <!-- form_field_select vpt_ci_ci_type END-->
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="form_even_row">
                                            <!-- form_field_checkboxvpt_ci_required START-->
                                            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                <tr>
                                                    <td width="180">
                                                        <div align="right">Required?:</div>
                                                    </td>
                                                    <td width="1%">
                                                        <input class="form" name="vpt_ci_required" type="checkbox" value="{$vpt_ci_required_val}"{if $vpt_ci_required_checked} checked="checked"{/if} id="vpt_ci_required" />
                                                    </td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                {if $vpt_ci_required_has_error}
                                                <!-- Potential errors START -->
                                                {if $vpt_ci_required_error_mandatory_missing}
                                                <!-- mandatory_missing START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Field is mandatory.</div>
                                                    </td>
                                                </tr>
                                                <!-- mandatory_missing END -->
                                                {/if}
                                                <!-- Potential errors END -->
                                                {/if}
                                            </table>
                                            <!-- form_field_checkbox vpt_ci_required END-->
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="form_odd_row">
                                            <!-- form_field_text vpt_ci_export_name START-->
                                            <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                                                <tr>
                                                    <td width="180">
                                                        <div align="right">Export variable name*:</div>
                                                    </td>
                                                    <td width="1%">
                                                        <input class="form" name="vpt_ci_export_name" type="text" value="{$vpt_ci_export_name_val}" maxlength="255" size="40" id="vpt_ci_export_name"/>
                                                    </td>
                                                    <td>Must be alphanumeric, underscore (_) allowed.</td>
                                                </tr>
                                                {if $vpt_ci_export_name_has_error}
                                                <!-- Potential errors START -->
                                                {if $vpt_ci_export_name_error_mandatory_missing}
                                                <!-- mandatory_missing START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Field is mandatory.</div>
                                                    </td>
                                                </tr>
                                                <!-- mandatory_missing END -->
                                                {/if}
                                                {if $vpt_ci_export_name_error_max_length_exceeded}
                                                <!-- max_length_exceeded START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Allowed maximum of 255 characters exceeded.</div>
                                                    </td>
                                                </tr>
                                                <!-- max_length_exceeded END -->
                                                {/if}
                                                {if $vpt_ci_export_name_error_invalid_export_name}
                                                <!-- invalid_export_name START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Invalid export name. Must be alphanumeric, underscore (_) allowed.</div>
                                                    </td>
                                                </tr>
                                                <!-- invalid_export_name END -->
                                                {/if}
                                                {if $vpt_ci_export_name_error_duplicate_export_name}
                                                <!-- duplicate_export_name START -->
                                                <tr>
                                                    <td></td>
                                                    <td colspan="2">
                                                        <div class="form_error_message">Error: Duplicate export var name. There is another item with same export name.</div>
                                                    </td>
                                                </tr>
                                                <!-- duplicate_export_name END -->
												{/if}                                                
                                                <!-- Potential errors END -->
                                                {/if}
                                            </table>
                                            <!-- form_field_text vpt_ci_export_name END-->
                                        </td>
                                    </tr>
                                </table>
                                <input type="hidden" name="vpt_ci_form_id" value="{$vpt_ci_form_id_val}" id="vpt_ci_form_id"/>
                                <input type="hidden" name="vpt_ci_guard_value" value="{$vpt_ci_guard_value_val}" id="vpt_ci_guard_value"/>
                            </td>
                        </tr>
                        <tr>
                            <td align="left">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="submit_row">
                                    <tr>
                                        <td width="180">&nbsp;</td>
                                        <td width="100" align="left">
                                            <input name="vpt_ci_submit" type="submit" value="Save" class="form_submit" />
                                        </td>
                                        <td width="50">&nbsp;</td>
                                        <td>
                                            <div class="form_cancel"><a href="admin/modules/tangra_cms/vpage/vpage_template_manage.php?manage={$template_id}">Cancel</a></div>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </td>
    </tr>
</table>
<!-- *** CUT bottom -->
